﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace MemcachedDemo.Library.Config
{
    [Serializable]
    public class ServerInfo
    {
        public ServerInfo()
        {
            Port = 11211;
            Weight = 1;
            HostName = "";
        }

        [XmlAttribute]
        public string Ip
        {
            get;
            set;
        }
        [XmlAttribute]
        public int Port
        {
            get;
            set;
        }
        [XmlAttribute]
        public int Weight
        {
            get;
            set;
        }
        [XmlAttribute]
        public string HostName
        {
            get;
            set;
        }
    }
}
